package PJ;

public class Date {
	public static int year=2016,month=5,day=30,totalday=1;
	public static void print(){
		System.out.println("今天是"+year+"年"+month+"月"+day+"日"+"周"+(totalday%7));
		totalday++;
		day++;
		if(month==1||month==3||month==5||month==7||month==8||month==10||month==12){
			if(day==32){
				day=1;
				month++;
			}
			if(month==13){
				month=1;
				year++;
			}
		}
		if(month==2){
			if(day==29){
				day=1;
				month++;
			}
		}
		if(month==4||month==6||month==9||month==11){
			if(day==32){
				day=1;
				month++;
			}
		}
	}
}
